import { get } from '../network/http'

/**
 * 获取历史k线数据
 * @param symbol
 * @param to
 * @param interval
 * @returns {Promise<T>}
 */
export function getHistoryKLine (symbol, to, interval) {
  return get('query/v1.0/kline', {
    instrumentID: symbol,
    startDatetime: to,
    count: 800,
    type: interval
  })
}
